{extend name="public/common"} {block name="body"}
<div class="cl pd-5 bg-1 bk-gray mt-20" > 
  <span class="l" style="margin-left:15px;"><a style="" href="/admin/Operate/bonusAdd" class="btn btn-primary radius">新增存款红包等级 </a></span>
</div>
<div class="page-container">
  <div id="tab-system" class="HuiTab">
      <div class="mt-20">
        <table
          class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
          <thead>
            <tr class="text-c">
              <th>ID</th>
              <th>红包等级</th>
              <th>用户充值最低标准</th>
              <th>用户充值最高标准</th>
              <th>操作</th>
            </tr>
          
          </thead>
          <tbody>
            {volist name="list" id="DL"}
          
			<tr class="text-c">
			  <td>{$DL.id}</td>
			  <td>{$DL.lv}级红包</td>
			  <td>{$DL.min_saving}</td>
			  <td>{$DL.max_saving}</td>
			  <td>
			  <a href='javascript:;' onclick="check_chance('{$DL.lv}级红包','/admin/Operate/bonusChance?type=saving&lv={$DL.lv}')" title="查看"><i class="Hui-iconfont">&#xe725;</i></a>&nbsp;&nbsp;&nbsp;
			  	<a href='/admin/Operate/bonusEdit?id={$DL.id}' title="修改"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;&nbsp;&nbsp;
			  	<a href='javascript:void(0);' onclick='delUserClass({$DL.id},{$DL.lv})' title="删除"><i class="Hui-iconfont">&#xe609;</i></a>
			  </td>
			     {/volist}
			</tr>

          </tbody>
        </table>
      </div>
  </div>
</div>

{/block}

{block name="js"} 
<script type="text/javascript">

function delUserClass(id,lv){
	//删除用户等级
	layer.confirm('确认删除该红包吗？', {
		  btn: ['确认','取消'] //按钮
		}, function(){
		  location.href='/admin/Operate/bonusDel?lv='+lv+'&id='+id
		});
}

function check_chance(title,url,id,w,h){
	layer_show(title,url,'1200',h);
}

</script>
{/block}
 
